package com.quanquan.management.dto.marketActivity.paperPlane;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName PaperPlaneCodeDTO
 * @Description
 * @Author Owen
 * @Date 2019/9/17 0017 下午 1:51
 * @Version V1.0
 **/
@Data
public class PaperPlaneCodeDTO implements Serializable {

    private Integer id;

    private Long activityId;

    private String code;

    private String userId;

    //状态：1 正常,0 失效
    private Integer state;

    //使用状态：0 未使用，1 已录入，2 参与抽奖
    private Integer status;

    //难度：1 低，2 中，3 高
    private Integer difficulty;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date joinTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date enterTime;

    @Transient
    private String userPhone;

}
